Pearson Edexcel · A-Level · Statistics
Course version: 9ST0 · Version from Sept 2017
Use the Wilcoxon rank-sum test to investigate for difference between…
Full specification wording
One and two sample non-parametric tests: Use the Wilcoxon rank-sum test to investigate for difference between independent samples.
The Wilcoxon rank-sum test (also called the Mann-Whitney U test) is a non-parametric alternative to the two-sample t-test.
- Point 2 of 2
Study notes
From the teaching notes for this specification point.
The idea
The Wilcoxon rank-sum test (also called the Mann-Whitney U test) is a non-parametric alternative to the two-sample t-test. It is used to investigate whether two independent samples come from populations with the same distribution, specifically testing for a difference in location (median). The test does not assume normality. To carry it out, you combine the two samples, rank all observations from smallest to largest, and then sum the ranks for one of the samples. Tied observations receive the average of the ranks they would have occupied. The test statistic is usually the sum of ranks for the smaller sample, or the U statistic, which is calculated from the rank sums. You compare this with a critical value from the Wilcoxon rank-sum table or use a normal approximation for large samples.
What earns the marks
- State the null hypothesis that the two populations have the same distribution (or same median) and the alternative that they differ, in the context of the problem.
- Combine the two samples, rank all observations from smallest to largest, and assign average ranks to tied values.
- Calculate the sum of ranks for one sample (often the smaller sample) and use it as the test statistic, or calculate the U statistic from the rank sums.
- Compare the test statistic with the critical value from the Wilcoxon rank-sum table at the chosen significance level, or use a normal approximation for large samples, and interpret the result in context.
Common mistakes and how to put them right
Misunderstanding: the Wilcoxon rank-sum test can be used for paired data.
Put it right: It is for independent samples; for paired data, use the Wilcoxon signed-rank test or sign test.
Misunderstanding: you rank each sample separately.
Put it right: You must combine the two samples and rank all observations together.
Misunderstanding: ties are ignored or broken arbitrarily.
Put it right: Tied observations are given the average of the ranks they would have occupied.
Misunderstanding: the test assumes normal distributions.
Put it right: It is non-parametric and does not assume normality, though it does assume independent samples and, for a median difference, similar shapes.
Exam tips
- Clearly label which sample is which and show the combined ranking process, especially when there are ties.
- State the null and alternative hypotheses in words in the context of the question, not just symbols.
- Check whether a one-tailed or two-tailed test is required and use the correct critical value or p-value.
- When interpreting, avoid saying 'the medians are equal'; instead say 'there is insufficient evidence to suggest a difference in the populations'.
Try the lesson
The start of the One and two sample non-parametric tests: Use the Wilcoxon rank-sum test to investigate for difference between independent samples. lesson, made from teaching notes for this specification point.
Have a go first
A researcher wants to compare the median waiting times of two independent groups of patients, Group A and Group B. The data are not Normally distributed and the two groups are unrelated. Which test is appropriate?
There is more to this lesson
The full lesson goes on to check your understanding and help you earn the marks. Create a free account to carry on, with your progress saved.
5 free practice questions every day · Free forever · No card required
Test your understanding of One and two sample non-parametric tests: Use the Wilcoxon rank-sum test to investigate for difference between independent samples.
Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.
5 free practice questions every day · Free forever · No card required